package com.java.test1;

public class TestDriver1 {

	public static void main(String[] args) {

		// test01();
		// test02();
		test03();

	}

	private static void test03() {
		// 创建一个老师的实例个体
		Teacher tea2 = new Teacher("小明", "男", "历史", 20);
		// 调用变长数组
		tea2.doteaching("天津市西青区", "开源路", "中北", "高科技", "产业园区");

		// 调用数组类型
		String[] school = { "25", "54" };
		tea2.doteaching("天津市河西区", 20, 55, school);
	}

	private static void test02() {
		// 创建老师的实例个体
		Teacher tea1 = new Teacher();
		tea1.setTeaName("张老师");
		tea1.setCourseName("政治");
		tea1.doteaching("天津市", "汾西一中", "汾西二中", "汾西三中");
		String[] school = { "30", "60" };
		tea1.doteaching("天津西青", 3, 21, school);

	}

	private static void test01() {
		// 创建一个老师的实例个体
		Teacher tea0 = new Teacher();

		// 设置老师的名字
		tea0.setTeaName("王老师");
		// 设置课程名字
		tea0.setCourseName("java课程");
		// 设置老师上课的行为
		tea0.doteaching();
		// 设置课程名字
		tea0.setCourseName("化学");
		// 调用老师的行为
		tea0.doteaching("天津西青");
		// 调用老师的行为
		tea0.doteaching("天津", 3);

	}
}
